package com.slipper.sfts.stock.front;

import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

import com.slipper.common.bo.Result;
import com.slipper.common.util.ResultUtil;
import com.slipper.sfts.api.stock.bo.StockOrderMessageBO;
import com.slipper.sfts.api.stock.service.IStockOrderMessageSv;
import com.slipper.sfts.stock.service.StockOrderMessageService;

import java.util.List;

@RestController
public class StockOrderMessageSv implements IStockOrderMessageSv {
    @Resource
    private StockOrderMessageService stockOrderMessageService;
    
    @Override
    public Result<StockOrderMessageBO> queryBy(String id) {
        return ResultUtil.successResult(stockOrderMessageService.queryBy(id));
    }

    @Override
    public Result<List<StockOrderMessageBO>> queryList(StockOrderMessageBO bo) {
        return ResultUtil.successResult(stockOrderMessageService.queryList(bo));
    }
    
    @Override
    public Result<List<StockOrderMessageBO>> queryPage(StockOrderMessageBO bo) {
        return ResultUtil.successResult(stockOrderMessageService.queryPage(bo));
    }
    
    @Override
    public Result<?> save(StockOrderMessageBO bo) {
        return ResultUtil.saveResult(stockOrderMessageService.save(bo), bo);
    }
    
    @Override
    public Result<?> delete(StockOrderMessageBO bo) {
        return ResultUtil.deleteResult(stockOrderMessageService.delete(bo));
    }
}
